//
//  MNDBackMoneyCalendarCell.m
//  minidai
//
//  Created by Steven.Yung on 2017/9/28.
//  Copyright © 2017年 迷你金服. All rights reserved.
//

#import "MNDBackMoneyCalendarCell.h"
#import "UIImage+JKColor.h"

@interface MNDBackMoneyCalendarCell ()

@property(nonatomic, strong) MNDBackMonryCalendarModel *model;

@end

@implementation MNDBackMoneyCalendarCell

- (IBAction)selectedMonthAction:(UIButton *)sender {
    
//    [self.yearButton setSelected:YES];
//    [self.monthButton setSelected:YES];
//    
//    self.model.isSelected = YES;
//    
//    if (self.delegate && [self.delegate respondsToSelector:@selector(didSelectedCellWithModel:)]) {
//        
//        [self.delegate didSelectedCellWithModel:self.model];
//    }
}

- (void)configCellWithModel:(MNDBackMonryCalendarModel *)model {
    self.model = model;
    
    self.monthLabel.text = model.month;
    self.yearLabel.text = model.year;
    
    self.monthLabel.textColor = model.isSelected ? [UIColor whiteColor] : kColorBlack;
    self.yearLabel.textColor = model.isSelected ?  kColorDarkOrange : kColorBlack;
    
    self.monthLabel.backgroundColor = model.isSelected ? kColorDarkOrange : [UIColor clearColor];
}

@end
